import { Entity, Column, PrimaryGeneratedColumn } from 'typeorm';
import { BaseEntity } from 'src/entities/base.entity';
@Entity()
export class DictData  extends BaseEntity {
    @PrimaryGeneratedColumn({
        comment:'字典编码(id)'
    })
    dict_code: number;

    @Column({
        comment:'字典键值'
    })
    dict_value: string;

    @Column({
        comment:'字典标签'
    })
    dict_label: string;

    @Column({
        comment:'字典排序'
    })
    dict_sort: number;

    @Column({
        comment:'字典类型'
    })
    dict_type: string;

    @Column({
        nullable:true,
        comment:'样式属性（其他样式扩展）'
    })
    ccs_class: string;

    @Column({
        nullable:true,
        comment:'表格回显样式'
    })
    list_class: string;

    @Column({
        default:'N',
        comment:'是否默认（Y是 N否）'
    })
    is_default: string;

    @Column({
        default:'0',
        comment:'字典状态（0正常 1停用）'
    })
    status: string;
}
